package com.zmc.order.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.order.infrastructure.entity.OrderItemEntity;

import java.util.List;

/**
 * 订单项信息
 *
 * @author zmc
 * @email 
 * @date 2024-10-09 14:52:02
 */
public interface OrderItemService extends IService<OrderItemEntity> {

    List<OrderItemEntity> listByOrderSns(String memberId, List<String> orderSns);

    List<OrderItemEntity> listByOrderSn(String orderSn);

    void saveBatchItem(List<OrderItemEntity> itemList);

    void batchUpdateOrderItems(List<OrderItemEntity> itemList);

    void removeItemsByOrderSn(String memberId, String orderSn);

    /**
     * @param orderSn: 总订单号
     * @param items: 订单条目
     * */
    void updateBatchByOrderAndSpu(String orderSn, List<OrderItemEntity> items);

}

